﻿using FPSO.Models.Constant;
using FPSO.Models.TagMapping;
using FPSO.Models.ViewModel.Controls;
using Microsoft.Practices.Prism.ViewModel;
using System.Collections.Generic;

namespace FPSO.ViewModel.Controls
{
	/// <summary>
	/// NOTICE 注入界面相关控件绑定的数据
	/// </summary>
	public class UCOilBallastViewModel : NotificationObject
    {
        private List<TankOilViewModel> cotTanks = new List<TankOilViewModel>();
        private List<TankViewModel> bwtTanks = new List<TankViewModel>();
        public UCOilBallastViewModel()
        {
            NO1_COT_P = new TankOilViewModel("NO1_COT_P", TankConstant.GetTankVolume("NO1_COT_P"));
			NO1_COT_S = new TankOilViewModel("NO1_COT_S", TankConstant.GetTankVolume("NO1_COT_S"));
            NO2_COT_P = new TankOilViewModel("NO2_COT_P", TankConstant.GetTankVolume("NO2_COT_P"));
            NO2_COT_S = new TankOilViewModel("NO2_COT_S", TankConstant.GetTankVolume("NO2_COT_S"));
            NO3_COT_P = new TankOilViewModel("NO3_COT_P", TankConstant.GetTankVolume("NO3_COT_P"));
            NO3_COT_S = new TankOilViewModel("NO3_COT_S", TankConstant.GetTankVolume("NO3_COT_S"));
            NO4_COT_P = new TankOilViewModel("NO4_COT_P", TankConstant.GetTankVolume("NO4_COT_P"));
            NO4_COT_S = new TankOilViewModel("NO4_COT_S", TankConstant.GetTankVolume("NO4_COT_S"));
            NO5_COT_P = new TankOilViewModel("NO5_COT_P", TankConstant.GetTankVolume("NO5_COT_P"));
            NO5_COT_S = new TankOilViewModel("NO5_COT_S", TankConstant.GetTankVolume("NO5_COT_S"));
            OFFSPECTANK = new TankOilViewModel("OFFSPECTANK", TankConstant.GetTankVolume("OFFSPECTANK"));
            NO1_SLOP = new TankOilViewModel("NO1_SLOP", TankConstant.GetTankVolume("NO1_SLOP"));
            NO2_SLOP = new TankOilViewModel("NO2_SLOP", TankConstant.GetTankVolume("NO2_SLOP"));
            cotTanks.Add(NO1_COT_P);
            cotTanks.Add(NO1_COT_S);
            cotTanks.Add(NO2_COT_P);
            cotTanks.Add(NO2_COT_S);
            cotTanks.Add(NO3_COT_P);
            cotTanks.Add(NO3_COT_S);
            cotTanks.Add(NO4_COT_P);
            cotTanks.Add(NO4_COT_S);
            cotTanks.Add(NO5_COT_P);
            cotTanks.Add(NO5_COT_S);
            cotTanks.Add(OFFSPECTANK);
            cotTanks.Add(NO1_SLOP);
            cotTanks.Add(NO2_SLOP);

            NO1_WBT_P = new TankViewModel("NO1_WBT_P", TankConstant.GetTankVolume("NO1_WBT_P"));
            NO1_WBT_S = new TankViewModel("NO1_WBT_S", TankConstant.GetTankVolume("NO1_WBT_S"));
            NO2_WBT_P = new TankViewModel("NO2_WBT_P", TankConstant.GetTankVolume("NO2_WBT_P"));
            NO2_WBT_S = new TankViewModel("NO2_WBT_S", TankConstant.GetTankVolume("NO2_WBT_S"));
            NO3_WBT_P = new TankViewModel("NO3_WBT_P", TankConstant.GetTankVolume("NO3_WBT_P"));
            NO3_WBT_S = new TankViewModel("NO3_WBT_S", TankConstant.GetTankVolume("NO3_WBT_S"));
            NO4_WBT_P = new TankViewModel("NO4_WBT_P", TankConstant.GetTankVolume("NO4_WBT_P"));
            NO4_WBT_S = new TankViewModel("NO4_WBT_S", TankConstant.GetTankVolume("NO4_WBT_S"));
            NO5_WBT_P = new TankViewModel("NO5_WBT_P", TankConstant.GetTankVolume("NO5_WBT_P"));
            NO5_WBT_S = new TankViewModel("NO5_WBT_S", TankConstant.GetTankVolume("NO5_WBT_S"));
            FPT = new TankViewModel("FPT", TankConstant.GetTankVolume("FPT"));
            APTP = new TankViewModel("APTP", TankConstant.GetTankVolume("APTP"));
            APTS = new TankViewModel("APTS", TankConstant.GetTankVolume("APTS"));
            bwtTanks.Add(NO1_WBT_P);
            bwtTanks.Add(NO1_WBT_S);
            bwtTanks.Add(NO2_WBT_P);
            bwtTanks.Add(NO2_WBT_S);
            bwtTanks.Add(NO3_WBT_P);
            bwtTanks.Add(NO3_WBT_S);
            bwtTanks.Add(NO4_WBT_P);
            bwtTanks.Add(NO4_WBT_S);
            bwtTanks.Add(NO5_WBT_P);
            bwtTanks.Add(NO5_WBT_S);
            bwtTanks.Add(FPT);
            bwtTanks.Add(APTP);
            bwtTanks.Add(APTS);

            hull_bfv_96017 = new ValveViewModel("HULL_BFV_96017");
            hull_bfv_96005 = new ValveViewModel("HULL_BFV_96005");
            hull_bfv_96018 = new ValveViewModel("HULL_BFV_96018");
            hull_bfv_96019 = new ValveViewModel("HULL_BFV_96019");
            hull_bfv_96015 = new ValveViewModel("HULL_BFV_96015");
            hull_bfv_96020 = new ValveViewModel("HULL_BFV_96020");
            hull_bfv_96004 = new ValveViewModel("HULL_BFV_96004");
            hull_bfv_96027 = new ValveViewModel("HULL_BFV_96027");
            hull_bfv_96001 = new ValveViewModel("HULL_BFV_96001");
            hull_bfv_96024 = new ValveViewModel("HULL_BFV_96024");
            hull_bfv_96011 = new ValveViewModel("HULL_BFV_96011");
            hull_bfv_96007 = new ValveViewModel("HULL_BFV_96007");
            hull_bfv_96026 = new ValveViewModel("HULL_BFV_96026");
            hull_bfv_96002 = new ValveViewModel("HULL_BFV_96002");
            hull_bfv_96016 = new ValveViewModel("HULL_BFV_96016");
            hull_bfv_96003 = new ValveViewModel("HULL_BFV_96003");
            hull_bfv_96012 = new ValveViewModel("HULL_BFV_96012");
            hull_bfv_96022 = new ValveViewModel("HULL_BFV_96022");
            hull_bfv_96021 = new ValveViewModel("HULL_BFV_96021");
            hull_bfv_96023 = new ValveViewModel("HULL_BFV_96023");
            hull_bfv_96025 = new ValveViewModel("HULL_BFV_96025");
            hull_bfv_96006 = new ValveViewModel("HULL_BFV_96006");
            hull_bfv_96008 = new ValveViewModel("HULL_BFV_96008");
            hull_bfv_96052 = new ValveViewModel("HULL_BFV_96052");
            hull_bfv_96051 = new ValveViewModel("HULL_BFV_96051");
            hull_bfv_96009 = new ValveViewModel("HULL_BFV_96009");
            hull_bfv_96054 = new ValveViewModel("HULL_BFV_96054");
            hull_bfv_96049 = new ValveViewModel("HULL_BFV_96049");
            hull_bfv_96010 = new ValveViewModel("HULL_BFV_96010");
            hull_bfv_96053 = new ValveViewModel("HULL_BFV_96053");
            hull_bfv_96050 = new ValveViewModel("HULL_BFV_96050");
            hull_bfv_91009 = new ValveViewModel("HULL_BFV_91009");
            hull_bfv_91008 = new ValveViewModel("HULL_BFV_91008");
			hull_bfv_91011 = new ValveViewModel("HULL_BFV_91011");
            hull_bfv_91010 = new ValveViewModel("HULL_BFV_91010");
            hull_bfv_91013 = new ValveViewModel("HULL_BFV_91013");
            hull_bfv_91012 = new ValveViewModel("HULL_BFV_91012");
            hull_bfv_91015 = new ValveViewModel("HULL_BFV_91015");
            hull_bfv_91014 = new ValveViewModel("HULL_BFV_91014");
            hull_bfv_91017 = new ValveViewModel("HULL_BFV_91017");
            hull_bfv_91016 = new ValveViewModel("HULL_BFV_91016");
            hull_bfv_96055 = new ValveViewModel("HULL_BFV_96055");

            hull_p_9601A = new PumpViewModel("HULL_P_9601A");
            hull_p_9601B = new PumpViewModel("HULL_P_9601B");
        }

        //压载舱控件（待核对）
        private TankViewModel no5_wbt_p;
        private TankViewModel no4_wbt_p;
        private TankViewModel no3_wbt_p;
        private TankViewModel no2_wbt_p;
        private TankViewModel no1_wbt_p;
        private TankViewModel no5_wbt_s;
        private TankViewModel no4_wbt_s;
        private TankViewModel no3_wbt_s;
        private TankViewModel no2_wbt_s;
        private TankViewModel no1_wbt_s;
        private TankViewModel fpt;
        private TankViewModel aptp;
        private TankViewModel apts;

        [FieldMapper("NO5_WBT_P")]
        public TankViewModel NO5_WBT_P { get { return no5_wbt_p; } set { no5_wbt_p = value; RaisePropertyChanged("NO5_WBT_P"); } }

        [FieldMapper("NO4_WBT_P")]
        public TankViewModel NO4_WBT_P { get { return no4_wbt_p; } set { no4_wbt_p = value; RaisePropertyChanged("NO4_WBT_P"); } }

        [FieldMapper("NO3_WBT_P")]
        public TankViewModel NO3_WBT_P { get { return no3_wbt_p; } set { no3_wbt_p = value; RaisePropertyChanged("NO3_WBT_P"); } }

        [FieldMapper("NO2_WBT_P")]
        public TankViewModel NO2_WBT_P { get { return no2_wbt_p; } set { no2_wbt_p = value; RaisePropertyChanged("NO2_WBT_P"); } }

        [FieldMapper("NO1_WBT_P")]
        public TankViewModel NO1_WBT_P { get { return no1_wbt_p; } set { no1_wbt_p = value; RaisePropertyChanged("NO1_WBT_P"); } }

        [FieldMapper("NO5_WBT_S")]
        public TankViewModel NO5_WBT_S { get { return no5_wbt_s; } set { no5_wbt_s = value; RaisePropertyChanged("NO5_WBT_S"); } }

        [FieldMapper("NO4_WBT_S")]
        public TankViewModel NO4_WBT_S { get { return no4_wbt_s; } set { no4_wbt_s = value; RaisePropertyChanged("NO4_WBT_S"); } }

        [FieldMapper("NO3_WBT_S")]
        public TankViewModel NO3_WBT_S { get { return no3_wbt_s; } set { no3_wbt_s = value; RaisePropertyChanged("NO3_WBT_S"); } }

        [FieldMapper("NO2_WBT_S")]
        public TankViewModel NO2_WBT_S { get { return no2_wbt_s; } set { no2_wbt_s = value; RaisePropertyChanged("NO2_WBT_S"); } }

        [FieldMapper("NO1_WBT_S")]
        public TankViewModel NO1_WBT_S { get { return no1_wbt_s; } set { no1_wbt_s = value; RaisePropertyChanged("NO1_WBT_S"); } }

        [FieldMapper("FPT")]
        public TankViewModel FPT { get { return fpt; } set { fpt = value; RaisePropertyChanged("FPT"); } }
        [FieldMapper("APTP")]
        public TankViewModel APTP { get { return aptp; } set { aptp = value; RaisePropertyChanged("APTP"); } }
        [FieldMapper("APTS")]
        public TankViewModel APTS { get { return apts; } set { apts = value; RaisePropertyChanged("APTS"); } }

        //货油舱控件（待核对）
        private TankOilViewModel no5_cot_p;
        private TankOilViewModel no4_cot_p;
        private TankOilViewModel no3_cot_p;
        private TankOilViewModel no2_cot_p;
        private TankOilViewModel no1_cot_p;
        private TankOilViewModel no5_cot_s;
        private TankOilViewModel no4_cot_s;
        private TankOilViewModel no3_cot_s;
        private TankOilViewModel no2_cot_s;
        private TankOilViewModel no1_cot_s;
        private TankOilViewModel offspectank;
        private TankOilViewModel no1_slop;
        private TankOilViewModel no2_slop;
        [FieldMapper("NO5_COT_P")]
        public TankOilViewModel NO5_COT_P { get { return no5_cot_p; } set { no5_cot_p = value; RaisePropertyChanged("NO5_COT_P"); } }

        [FieldMapper("NO4_COT_P")]
        public TankOilViewModel NO4_COT_P { get { return no4_cot_p; } set { no4_cot_p = value; RaisePropertyChanged("NO4_COT_P"); } }

        [FieldMapper("NO3_COT_P")]
        public TankOilViewModel NO3_COT_P { get { return no3_cot_p; } set { no3_cot_p = value; RaisePropertyChanged("NO3_COT_P"); } }

        [FieldMapper("NO2_COT_P")]
        public TankOilViewModel NO2_COT_P { get { return no2_cot_p; } set { no2_cot_p = value; RaisePropertyChanged("NO2_COT_P"); } }

        [FieldMapper("NO1_COT_P")]
        public TankOilViewModel NO1_COT_P
        {
            get { return no1_cot_p; }
            set
            {
                no1_cot_p = value;
                RaisePropertyChanged("NO1_COT_P");
            }
        }

        [FieldMapper("NO5_COT_S")]
        public TankOilViewModel NO5_COT_S
        {
            get { return no5_cot_s; }
            set
            {
                no5_cot_s = value;
                RaisePropertyChanged("NO5_COT_S");
            }
        }

        [FieldMapper("NO4_COT_S")]
        public TankOilViewModel NO4_COT_S
        {
            get { return no4_cot_s; }
            set
            {
                no4_cot_s = value;
                RaisePropertyChanged("NO4_COT_S");
            }
        }

        [FieldMapper("NO3_COT_S")]
        public TankOilViewModel NO3_COT_S
        {
            get { return no3_cot_s; }
            set
            {
                no3_cot_s = value;
                RaisePropertyChanged("NO3_COT_S");
            }
        }

        [FieldMapper("NO2_COT_S")]
        public TankOilViewModel NO2_COT_S
        {
            get { return no2_cot_s; }
            set
            {
                no2_cot_s = value;
                RaisePropertyChanged("NO2_COT_S");
            }
        }

        [FieldMapper("NO1_COT_S")]
        public TankOilViewModel NO1_COT_S
        {
            get { return no1_cot_s; }
            set
            {
                no1_cot_s = value;
                RaisePropertyChanged("NO1_COT_S");
            }
        }

        [FieldMapper("OFFSPECTANK")]
        public TankOilViewModel OFFSPECTANK
        {
            get { return offspectank; }
            set
            {
                offspectank = value;
                RaisePropertyChanged("OFFSPECTANK");
            }
        }

        [FieldMapper("NO1_SLOP")]
        public TankOilViewModel NO1_SLOP
        {
            get { return no1_slop; }
            set
            {
                no1_slop = value;
                RaisePropertyChanged("NO1_SLOP");
            }
        }


        [FieldMapper("NO2_SLOP")]
        public TankOilViewModel NO2_SLOP
        {
            get { return no2_slop; }
            set
            {
                no2_slop = value;
                RaisePropertyChanged("NO2_SLOP");
            }
        }

        //阀门控件，需与注入管线图中阀门一一对应（待核对）
        private ValveViewModel hull_bfv_96017;
        private ValveViewModel hull_bfv_96005;
        private ValveViewModel hull_bfv_96018;
        private ValveViewModel hull_bfv_96019;
        private ValveViewModel hull_bfv_96015;
        private ValveViewModel hull_bfv_96020;
        private ValveViewModel hull_bfv_96004;
        private ValveViewModel hull_bfv_96027;
        private ValveViewModel hull_bfv_96001;
        private ValveViewModel hull_bfv_96024;
        private ValveViewModel hull_bfv_96011;
        private ValveViewModel hull_bfv_96007;
        private ValveViewModel hull_bfv_96026;
        private ValveViewModel hull_bfv_96002;
        private ValveViewModel hull_bfv_96016;
        private ValveViewModel hull_bfv_96003;
        private ValveViewModel hull_bfv_96012;
        private ValveViewModel hull_bfv_96022;
        private ValveViewModel hull_bfv_96021;
        private ValveViewModel hull_bfv_96023;
        private ValveViewModel hull_bfv_96025;
        private ValveViewModel hull_bfv_96006;
        private ValveViewModel hull_bfv_96008;
        private ValveViewModel hull_bfv_96052;
        private ValveViewModel hull_bfv_96051;
        private ValveViewModel hull_bfv_96009;
        private ValveViewModel hull_bfv_96054;
        private ValveViewModel hull_bfv_96049;
        private ValveViewModel hull_bfv_96010;
        private ValveViewModel hull_bfv_96053;
        private ValveViewModel hull_bfv_96050;
        private ValveViewModel hull_bfv_91009;
        private ValveViewModel hull_bfv_91008;
        private ValveViewModel hull_bfv_91011;
        private ValveViewModel hull_bfv_91010;
        private ValveViewModel hull_bfv_91013;
        private ValveViewModel hull_bfv_91012;
        private ValveViewModel hull_bfv_91015;
        private ValveViewModel hull_bfv_91014;
        private ValveViewModel hull_bfv_91017;
        private ValveViewModel hull_bfv_91016;
        private ValveViewModel hull_bfv_96055;

        [FieldMapper("HULL_BFV_96017")]
        public ValveViewModel HULL_BFV_96017 { get { return hull_bfv_96017; } set { hull_bfv_96017 = value; RaisePropertyChanged("HULL_BFV_96017"); } }
        [FieldMapper("HULL_BFV_96005")]
        public ValveViewModel HULL_BFV_96005 { get { return hull_bfv_96005; } set { hull_bfv_96005 = value; RaisePropertyChanged("HULL_BFV_96005"); } }
        [FieldMapper("HULL_BFV_96018")]
        public ValveViewModel HULL_BFV_96018 { get { return hull_bfv_96018; } set { hull_bfv_96018 = value; RaisePropertyChanged("HULL_BFV_96018"); } }
        [FieldMapper("HULL_BFV_96019")]
        public ValveViewModel HULL_BFV_96019 { get { return hull_bfv_96019; } set { hull_bfv_96019 = value; RaisePropertyChanged("HULL_BFV_96019"); } }
        [FieldMapper("HULL_BFV_96015")]
        public ValveViewModel HULL_BFV_96015 { get { return hull_bfv_96015; } set { hull_bfv_96015 = value; RaisePropertyChanged("HULL_BFV_96015"); } }
        [FieldMapper("HULL_BFV_96020")]
        public ValveViewModel HULL_BFV_96020 { get { return hull_bfv_96020; } set { hull_bfv_96020 = value; RaisePropertyChanged("HULL_BFV_96020"); } }
        [FieldMapper("HULL_BFV_96004")]
        public ValveViewModel HULL_BFV_96004 { get { return hull_bfv_96004; } set { hull_bfv_96004 = value; RaisePropertyChanged("HULL_BFV_96004"); } }
        [FieldMapper("HULL_BFV_96027")]
        public ValveViewModel HULL_BFV_96027 { get { return hull_bfv_96027; } set { hull_bfv_96027 = value; RaisePropertyChanged("HULL_BFV_96027"); } }
        [FieldMapper("HULL_BFV_96001")]
        public ValveViewModel HULL_BFV_96001 { get { return hull_bfv_96001; } set { hull_bfv_96001 = value; RaisePropertyChanged("HULL_BFV_96001"); } }
        [FieldMapper("HULL_BFV_96024")]
        public ValveViewModel HULL_BFV_96024 { get { return hull_bfv_96024; } set { hull_bfv_96024 = value; RaisePropertyChanged("HULL_BFV_96024"); } }
        [FieldMapper("HULL_BFV_96011")]
        public ValveViewModel HULL_BFV_96011 { get { return hull_bfv_96011; } set { hull_bfv_96011 = value; RaisePropertyChanged("HULL_BFV_96011"); } }
        [FieldMapper("HULL_BFV_96007")]
        public ValveViewModel HULL_BFV_96007 { get { return hull_bfv_96007; } set { hull_bfv_96007 = value; RaisePropertyChanged("HULL_BFV_96007"); } }
        [FieldMapper("HULL_BFV_96026")]
        public ValveViewModel HULL_BFV_96026 { get { return hull_bfv_96026; } set { hull_bfv_96026 = value; RaisePropertyChanged("HULL_BFV_96026"); } }
        [FieldMapper("HULL_BFV_96002")]
        public ValveViewModel HULL_BFV_96002 { get { return hull_bfv_96002; } set { hull_bfv_96002 = value; RaisePropertyChanged("HULL_BFV_96002"); } }
        [FieldMapper("HULL_BFV_96016")]
        public ValveViewModel HULL_BFV_96016 { get { return hull_bfv_96016; } set { hull_bfv_96016 = value; RaisePropertyChanged("HULL_BFV_96016"); } }
        [FieldMapper("HULL_BFV_96003")]
        public ValveViewModel HULL_BFV_96003 { get { return hull_bfv_96003; } set { hull_bfv_96003 = value; RaisePropertyChanged("HULL_BFV_96003"); } }
        [FieldMapper("HULL_BFV_96012")]
        public ValveViewModel HULL_BFV_96012 { get { return hull_bfv_96012; } set { hull_bfv_96012 = value; RaisePropertyChanged("HULL_BFV_96012"); } }
        [FieldMapper("HULL_BFV_96022")]
        public ValveViewModel HULL_BFV_96022 { get { return hull_bfv_96022; } set { hull_bfv_96022 = value; RaisePropertyChanged("HULL_BFV_96022"); } }
        [FieldMapper("HULL_BFV_96021")]
        public ValveViewModel HULL_BFV_96021 { get { return hull_bfv_96021; } set { hull_bfv_96021 = value; RaisePropertyChanged("HULL_BFV_96021"); } }
        [FieldMapper("HULL_BFV_96023")]
        public ValveViewModel HULL_BFV_96023 { get { return hull_bfv_96023; } set { hull_bfv_96023 = value; RaisePropertyChanged("HULL_BFV_96023"); } }
        [FieldMapper("HULL_BFV_96025")]
        public ValveViewModel HULL_BFV_96025 { get { return hull_bfv_96025; } set { hull_bfv_96025 = value; RaisePropertyChanged("HULL_BFV_96025"); } }
        [FieldMapper("HULL_BFV_96006")]
        public ValveViewModel HULL_BFV_96006 { get { return hull_bfv_96006; } set { hull_bfv_96006 = value; RaisePropertyChanged("HULL_BFV_96006"); } }
        [FieldMapper("HULL_BFV_96008")]
        public ValveViewModel HULL_BFV_96008 { get { return hull_bfv_96008; } set { hull_bfv_96008 = value; RaisePropertyChanged("HULL_BFV_96008"); } }
        [FieldMapper("HULL_BFV_96052")]
        public ValveViewModel HULL_BFV_96052 { get { return hull_bfv_96052; } set { hull_bfv_96052 = value; RaisePropertyChanged("HULL_BFV_96052"); } }
        [FieldMapper("HULL_BFV_96051")]
        public ValveViewModel HULL_BFV_96051 { get { return hull_bfv_96051; } set { hull_bfv_96051 = value; RaisePropertyChanged("HULL_BFV_96051"); } }
        [FieldMapper("HULL_BFV_96009")]
        public ValveViewModel HULL_BFV_96009 { get { return hull_bfv_96009; } set { hull_bfv_96009 = value; RaisePropertyChanged("HULL_BFV_96009"); } }
        [FieldMapper("HULL_BFV_96054")]
        public ValveViewModel HULL_BFV_96054 { get { return hull_bfv_96054; } set { hull_bfv_96054 = value; RaisePropertyChanged("HULL_BFV_96054"); } }
        [FieldMapper("HULL_BFV_96049")]
        public ValveViewModel HULL_BFV_96049 { get { return hull_bfv_96049; } set { hull_bfv_96049 = value; RaisePropertyChanged("HULL_BFV_96049"); } }
        [FieldMapper("HULL_BFV_96010")]
        public ValveViewModel HULL_BFV_96010 { get { return hull_bfv_96010; } set { hull_bfv_96010 = value; RaisePropertyChanged("HULL_BFV_96010"); } }
        [FieldMapper("HULL_BFV_96053")]
        public ValveViewModel HULL_BFV_96053 { get { return hull_bfv_96053; } set { hull_bfv_96053 = value; RaisePropertyChanged("HULL_BFV_96053"); } }
        [FieldMapper("HULL_BFV_96050")]
        public ValveViewModel HULL_BFV_96050 { get { return hull_bfv_96050; } set { hull_bfv_96050 = value; RaisePropertyChanged("HULL_BFV_96050"); } }
        [FieldMapper("HULL_BFV_91009")]
        public ValveViewModel HULL_BFV_91009 { get { return hull_bfv_91009; } set { hull_bfv_91009 = value; RaisePropertyChanged("HULL_BFV_91009"); } }
        [FieldMapper("HULL_BFV_91008")]
        public ValveViewModel HULL_BFV_91008
		{ 
			get
			{ 
				return hull_bfv_91008; 
			} 
			set 
			{ 
				hull_bfv_91008 = value;
				RaisePropertyChanged("HULL_BFV_91008"); 
			} 
		}
        [FieldMapper("HULL_BFV_91011")]
        public ValveViewModel HULL_BFV_91011 { get { return hull_bfv_91011; } set { hull_bfv_91011 = value; RaisePropertyChanged("HULL_BFV_91011"); } }
        [FieldMapper("HULL_BFV_91010")]
        public ValveViewModel HULL_BFV_91010 { get { return hull_bfv_91010; } set { hull_bfv_91010 = value; RaisePropertyChanged("HULL_BFV_91010"); } }
        [FieldMapper("HULL_BFV_91013")]
        public ValveViewModel HULL_BFV_91013 { get { return hull_bfv_91013; } set { hull_bfv_91013 = value; RaisePropertyChanged("HULL_BFV_91013"); } }
        [FieldMapper("HULL_BFV_91012")]
        public ValveViewModel HULL_BFV_91012 { get { return hull_bfv_91012; } set { hull_bfv_91012 = value; RaisePropertyChanged("HULL_BFV_91012"); } }
        [FieldMapper("HULL_BFV_91015")]
        public ValveViewModel HULL_BFV_91015 { get { return hull_bfv_91015; } set { hull_bfv_91015 = value; RaisePropertyChanged("HULL_BFV_91015"); } }
        [FieldMapper("HULL_BFV_91014")]
        public ValveViewModel HULL_BFV_91014 { get { return hull_bfv_91014; } set { hull_bfv_91014 = value; RaisePropertyChanged("HULL_BFV_91014"); } }
        [FieldMapper("HULL_BFV_91017")]
        public ValveViewModel HULL_BFV_91017 { get { return hull_bfv_91017; } set { hull_bfv_91017 = value; RaisePropertyChanged("HULL_BFV_91017"); } }
        [FieldMapper("HULL_BFV_91016")]
        public ValveViewModel HULL_BFV_91016 { get { return hull_bfv_91016; } set { hull_bfv_91016 = value; RaisePropertyChanged("HULL_BFV_91016"); } }

        [FieldMapper("HULL_BFV_96055")]
        public ValveViewModel HULL_BFV_96055 { get { return hull_bfv_96055; } set { hull_bfv_96055 = value; RaisePropertyChanged("HULL_BFV_96055"); } }
        //泵控件，需与注入管线图中泵一一对应（待核对）
        private PumpViewModel hull_p_9601A;
        private PumpViewModel hull_p_9601B;

        [FieldMapper("HULL_P_9601A")]
        public PumpViewModel HULL_P_9601A
        {
            get { return hull_p_9601A; }
            set
            {
                hull_p_9601A = value;
                RaisePropertyChanged("HULL_P_9601A");
            }
        }

        [FieldMapper("HULL_P_9601B")]
        public PumpViewModel HULL_P_9601B
        {
            get { return hull_p_9601B; }
            set
            {
                hull_p_9601B = value;
                RaisePropertyChanged("HULL_P_9601B");
            }
        }

        //下面的暂时没用
        public void SetBFVActive(string bfvName, bool active)
        {
            switch (bfvName.ToUpper().Trim())
            {
            }
        }

        public TankOilViewModel GetCotViewModel(string tankId)
        {
            foreach(TankOilViewModel tankOilViewModel in cotTanks)
            {
                if(tankOilViewModel.TankId == tankId)
                {
                    return tankOilViewModel;
                }
            }
            return null;
        }
        public TankViewModel GetBwtViewModel(string tankId)
        {
            foreach (TankViewModel tankViewModel in bwtTanks)
            {
                if (tankViewModel.TankId == tankId)
                {
                    return tankViewModel;
                }
            }
            return null;
        }
    }
}
